<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>函数</title>
    <script>
        // 匿名函数
        (function () {
            alert("匿名函数");
        })();
        (function (a,b) {
            alert(a+b);
        })(10,12);
    </script>
</head>
<body>

</body>
</html>